package com.cnap.model.schedule;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 部署参数
 *
 * @author xc
 **/
public class DistributeParam {
    // 服务id
    @ApiModelProperty(value = "服务id")
    @NotNull(message = "服务id不能为空")
    private String serviceId;
    // 集群
    @ApiModelProperty(value = "集群")
    private List<String> clusters;
    // yaml
    @ApiModelProperty(value = "yaml")
    @NotNull(message = "yaml不能为空")
    private String yaml;

    /**
     * get
     *
     * @return ServiceId
     */
    public String getServiceId() {
        return serviceId;
    }

    /**
     * set
     *
     * @param serviceId serviceId
     */
    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    /**
     * get
     *
     * @return Clusters
     */
    public List<String> getClusters() {
        return clusters;
    }

    /**
     * set
     *
     * @param clusters clusters
     */
    public void setClusters(List<String> clusters) {
        this.clusters = clusters;
    }

    /**
     * get
     *
     * @return Yaml
     */
    public String getYaml() {
        return yaml;
    }

    /**
     * set
     *
     * @param yaml yaml
     */
    public void setYaml(String yaml) {
        this.yaml = yaml;
    }
}
